home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: How to make it BEEP ?
- Date: 21 Mar 1996 19:15:58 GMT
- Organization: OpenVision
- Message-ID: <4is9tf$8o3@spanky.pls.ov.com>
- References: <4inmv1$ljj@sunburst.ccs.yorku.ca>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article ljj@sunburst.ccs.yorku.ca, "Shahed A. Quazi" <cs942112@ariel.cs.yorku.ca> writes:
- >Hi,
- >
- >I was wondering if anyone would be kind enough to tell me if there is a
- >C function on unix that I can use to make a beep sound. If it's not
- >there,I would really appreciate if someone could give me the code.
- >
- >Actually, I'm writing a very simple program where I need it to beep if
- >the user enters the input in wrong format.
- >
- >Thanks.
- >
- >--------------------------------
- >Shahed A. Quazi
- >York University, Toronto, Canada.
- >http://www.yucc.yorku.ca/~shahed
- >
-
-
- Almost all terminals and terminal emulations will cause a beep if you
- send the "bell" code (control G). This is ASCII code '\007'.
-
- Try:
-
- putc('\007', stdout);
- fflush(stdout);
-
- Fletcher.Glenn@ov.com
-
-